package com.zlt.dao;

import com.zlt.entity.Delivery;
import com.zlt.entity.OnlineResume;
import com.zlt.entity.Resume;
import com.zlt.entity.User;

import java.util.List;

public interface ResumeDao {
    Integer insertOnlineResume(OnlineResume onlineResume);

    Integer updateAdvantageByUid(String advantage, String uid);

    Integer updateExpectedPositionByUid(String expectedPosition, String uid);

    Integer updateEducationByUid(String education, String uid);

    Integer updateInternshipByUid(String internship, String uid);

    Integer updateSalary(String minSalary, String maxSalary, String uid);

    OnlineResume selectOnlineResumeByUid(String uid);

    List<Resume> selectAllResumeByUid(String uid);

    Integer deleteResumeByRid(Integer rid);

    Resume selectResumePathByRid(Integer rid);

    Integer updateResumeState(Integer rid);

    Integer updateDefaultResumeStateToNormal();

    Integer updateDefaultResumeByRid(Integer rid);

    Integer updateSalaryByUid(String minSalary, String maxSalary, String uid);

    Integer insertResume(Resume resume);

    User getUSerByUid(String uid);

    int updatePhoto(String uid, String url);

    Resume selectDefaultResume();

    int insertDelivery(Delivery delivery);
}
